package io.github.l86400.component.selenium.core.exception;

import io.github.l86400.core.exception.ExceptionEnum;
import lombok.Getter;
import lombok.ToString;

/**
 * @author 86400
 * @since 2021/12/21 17:23
 */
@Getter
@ToString
public enum ErrorCode implements ExceptionEnum {
    SELENIUM_EXCEPTION_ENUM("001", "SeleniumAutoConfiguration装配异常");
    private String code;
    private String message;
    private String showMessage;

    ErrorCode(String code, String message) {
        this(code, message, null);
    }

    ErrorCode(String code, String message, String showMessage) {
        this.code = FRAMEWORK_COMPONENT_SELENIUM_STARTER_PREFIX + code;
        this.message = message;
        this.showMessage = showMessage;
    }

}
